Skip to content

Speed-up lib dependency resolution in some particular cases #2140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Apr 7, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Speed up lib install in some particular worst cases where library dependency resolution has poor performance.

What is the current behavior?

The lib install command seems stuck while in reality, it is just searching for a dependency solution.

What is the new behavior?

The lib install command returns and error early if a dependency is clearly not available.

Does this PR introduce a breaking change, and is titled accordingly?

Other information

Code patch here bugst/relaxed-semver#14
Fix #2135

@cmaglie cmaglie changed the base branch from master to 0.32.x April 7, 2023 13:35
@cmaglie cmaglie self-assigned this Apr 7, 2023
@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 7, 2023
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (fe91ec6) 62.59% compared to head (28935df) 62.59%.

Additional details and impacted files
@@           Coverage Diff           @@
##           0.32.x    #2140   +/-   ##
=======================================
  Coverage   62.59%   62.59%           
=======================================
  Files         227      227           
  Lines       19533    19533           
=======================================
  Hits        12226    12226           
  Misses       6210     6210           
  Partials     1097     1097           
Flag Coverage Δ
unit 62.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running arduino-cli lib install NTPClient_Generic hangs forever on 100% CPU
2 participants